<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="template/base.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

	
<link rel="stylesheet" type="text/css" href="${basePath}/style/index.css" media="all">
<link rel="stylesheet" type="text/css" href="${basePath}/script/tip/tipTip.css" media="all" />

<script type="text/javascript" src="${basePath}/script/jquery.js"></script>
<script type="text/javascript" src="${basePath}/script/tip/jquery.tipTip.js"></script>

<script type="text/javascript">
	$(document).ready(function(){
		$(".tip").tipTip();
	});
</script>
		<title>Simpla Admin</title>
</head>
<body><div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		
		<div id="sidebar">
			<%@include file="template/left.jsp" %>
		</div> <!-- End #sidebar -->
		
		<!-- 右边 -->
		
		<div id="main-content">
				
				<div class="content-box">
					<div class="nav">
						<a href="${basePath}/main.action">首页</a> > <a href="project!list.action?id=${project.id}">${project.projectname }</a>
					</div>
				</div>
			
				<div class="content-box">
					<div class="content-box-header">
						<h3 style="cursor: s-resize;"><img src="${basePath }/images/milestone.png" style="margin-right:5px;"/>里程碑</h3>
						<div class="add"><a href="${basePath}/milestone!input.action?projectid=${project.id}"><img src="${basePath }/images/add.png" class="tip" title="创建里程碑" /></a></div>
					</div>
					<div class="content-box-content" style="padding-bottom: 10px;">
						<div style="display: block;" class="tab-content default-tab">
							
							<ul>
							<c:forEach items="${project.milestones}" var="milestone">
								<h5>${milestone.name }(${milestone.time })</h5>
								<c:forEach items="${milestone.issues}" var="issues">
									<c:choose>
										<c:when test="${issues.state eq '解决中'}">
											<li class="start"><a href="issues!list.action?id=${issues.id}">${issues.title }</a> <span>${issues.createtime}</span></li>
										</c:when>
										<c:when test="${issues.state eq '已关闭'}">
											<li class="close"><a href="issues!list.action?id=${issues.id}">${issues.title }</a> <span>${issues.createtime}</span></li>
										</c:when>
										<c:otherwise>
											<li><a href="issues!list.action?id=${issues.id}">${issues.title }</a> <span>${issues.createtime}</span></li>
										</c:otherwise>
									</c:choose>
								</c:forEach>
							</c:forEach>
							</ul>
							
							
							
						</div>
					</div> 
				</div>
				
				<div class="content-box">
					<div class="content-box-header">
						<h3 style="cursor: s-resize;"><img src="${basePath }/images/task.png" style="margin-right:5px;"/>任务</h3>
						<div class="add"><a href="${basePath}/issues!input.action?projectid=${project.id}&type=1"><img src="${basePath }/images/add.png" class="tip" title="添加任务" /></a></div>
					</div>
					<div class="content-box-content" style="padding-bottom: 10px;">
						<div style="display: block;" class="tab-content default-tab">
							
							<ul>
								<c:forEach items="${project.issues}" var="issues">
									<c:if test="${issues.type == 1}">
										<c:choose>
											<c:when test="${issues.state eq '解决中'}">
												<li class="start"><a href="issues!list.action?id=${issues.id}">${issues.title }</a> <span>${issues.createtime}</span></li>
											</c:when>
											<c:when test="${issues.state eq '已关闭'}">
												<li class="close"><a href="issues!list.action?id=${issues.id}">${issues.title }</a> <span>${issues.createtime}</span></li>
											</c:when>
											<c:otherwise>
												<li><a href="issues!list.action?id=${issues.id}">${issues.title }</a> <span>${issues.createtime}</span></li>
											</c:otherwise>
										</c:choose>
									</c:if>
								</c:forEach>
							</ul>
							
							
							
						</div>
					</div> 
				</div>
				
				<div class="content-box">
					<div class="content-box-header">
						<h3 style="cursor: s-resize;"><img src="${basePath }/images/bug.png" style="margin-right:5px;"/>错误</h3>
						<div class="add"><a href="${basePath}/issues!input.action?projectid=${project.id}&type=2"><img src="${basePath }/images/add.png" class="tip" title="添加错误" /></a></div>
					</div>
					<div class="content-box-content" style="padding-bottom: 10px;">
						<div style="display: block;" class="tab-content default-tab">
							
							<ul>
								<c:forEach items="${project.issues}" var="issues">
									<c:if test="${issues.type == 2}">
										<c:choose>
											<c:when test="${issues.state eq '解决中'}">
												<li class="start"><a href="issues!list.action?id=${issues.id}">${issues.title }</a> <span>${issues.createtime}</span></li>
											</c:when>
											<c:when test="${issues.state eq '已关闭'}">
												<li class="close"><a href="issues!list.action?id=${issues.id}">${issues.title }</a> <span>${issues.createtime}</span></li>
											</c:when>
											<c:otherwise>
												<li><a href="issues!list.action?id=${issues.id}">${issues.title }</a> <span>${issues.createtime}</span></li>
											</c:otherwise>
										</c:choose>
									</c:if>
								</c:forEach>
							</ul>
							
							
							
						</div>
					</div> 
				</div>
				
				<div class="content-box">
					<div class="content-box-header">
						<h3 style="cursor: s-resize;"><img src="${basePath }/images/idea.png" style="margin-right:5px;"/>想法</h3>
						<div class="add"><a href="${basePath}/issues!input.action?projectid=${project.id}&type=3"><img src="${basePath }/images/add.png" class="tip" title="添加想法" /></a></div>
					</div>
					<div class="content-box-content" style="padding-bottom: 10px;">
						<div style="display: block;" class="tab-content default-tab">
							
							<ul>
								<c:forEach items="${project.issues}" var="issues">
									<c:if test="${issues.type == 3}">
										<c:choose>
											<c:when test="${issues.state eq '解决中'}">
												<li class="start"><a href="issues!list.action?id=${issues.id}">${issues.title }</a> <span>${issues.createtime}</span></li>
											</c:when>
											<c:when test="${issues.state eq '已关闭'}">
												<li class="close"><a href="issues!list.action?id=${issues.id}">${issues.title }</a> <span>${issues.createtime}</span></li>
											</c:when>
											<c:otherwise>
												<li><a href="issues!list.action?id=${issues.id}">${issues.title }</a> <span>${issues.createtime}</span></li>
											</c:otherwise>
										</c:choose>
									</c:if>
								</c:forEach>
							</ul>
							
							
							
						</div>
					</div> 
				</div>
				
				<div class="content-box">
					<div class="content-box-header">
						<h3><img src="${basePath }/images/doc.png" style="margin-right:5px;"/>文档</h3>
						<div class="add"><a href="${basePath}/document!input.action?projectid=${project.id}"><img src="${basePath }/images/add.png" alt="添加任务" /></a></div>
					</div>
					<div class="content-box-content" style="padding-bottom: 10px;">
						<div style="display: block;" class="tab-content default-tab">
							
							<ul>
							<c:forEach items="${project.documents}" var="document">
								<li><a href="document!list.action?id=${document.id}">${document.title }</a> <span>${issues.createtime}</span></li>
							</c:forEach>
							</ul>
							
							
							
						</div>
					</div> 
				</div>
			
			
			<div id="footer">
				<small>
						© Copyright 2011 焦作凯盛信息技术有限公司 | Powered by <a href="http://www.kaishengit.com">凯盛软件</a> | <a href="#">Top</a>
				</small>
			</div>
			
		</div>
		
	</div>
  

   

</body>
</html>
